<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="com.fit.user.entity.CaseMsgEntity"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page import="com.fit.user.dao.*"  %>
<%
String contextPath = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+contextPath+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
 	<link href="<%=contextPath%>/img/skin/skin.css" rel="stylesheet" type="text/css" />
		<link href="<%=contextPath%>/css/sic.css" rel="stylesheet" type="text/css" />
	<style type="text/css">

body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #EEF2FB;
}
</style>
<style type="text/css">
.warp_table {border-collapse:collapse; width:550px; border:1px solid #4d9ab0}
.warp_table td {border:1px solid #4d9ab0}
</style>
<script language="javascript"><!--
function senfe(o,a,b,c,d){
 var t=document.getElementById(o).getElementsByTagName("tr");
 for(var i=1;i<t.length;i++){
  t[i].style.backgroundColor=(t[i].sectionRowIndex%2==0)?a:b;
  t[i].onclick=function(){
   if(this.x!="1"){
    this.x="1";
    this.style.backgroundColor=d;
   }else{
    this.x="0";
    this.style.backgroundColor=(this.sectionRowIndex%2==0)?a:b;
   }
  }
  t[i].onmouseover=function(){
   if(this.x!="1")this.style.backgroundColor=c;
  }
  t[i].onmouseout=function(){
   if(this.x!="1")this.style.backgroundColor=(this.sectionRowIndex%2==0)?a:b;
  }
 }
}
--></script>
  </head>

 
 <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="17" valign="top" background="<%=contextPath%>/img/skin/mail_leftbg.gif"><img src="<%=contextPath%>/img/skin/left-top-right.gif" width="17" height="29" /></td>
    <td valign="top" background="<%=contextPath%>/img/skin/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31" align="left"><div class="anjiantitlebt">备案登记记录</div></td>

      </tr>
    </table></td>
    <td width="16" valign="top" background="<%=contextPath%>/img/skin/mail_rightbg.gif"><img src="<%=contextPath%>/img/skin/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
  <tr>
    <td valign="middle" background="<%=contextPath%>/img/skin/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9"  class="table_boder">
		 <table width="100%" height="430" cellpadding="0" cellspacing="0" style="margin-top: 10px;">
		<tr><td valign="top" align="center">
		<%
  String policeID = (String)session.getAttribute("policeID");
  String[] table={"警号","姓名","备案编号","案件名称","操作"};
  CaseMsgDAO caseMsgDAO = new CaseMsgDAO();
  List<CaseMsgEntity> list = caseMsgDAO.getCaseMsg(policeID);
  

  
   %>
 
  <body>
  <table class="table_boder" cellSpacing="0" cellPadding="0" width="100%" id="changecolor" >
  <tr  align="center" class="myrow" bgcolor="#1D639F">
  <c:forEach var="name" items="<%=table %>">
			 <td class="td_boder"  style="color:#ffffff;">${name }</td> 
  </c:forEach>
  </tr>
	<c:forEach var="caseMsgEntity" items = "<%=list %>">
	<tr>
	<td>${caseMsgEntity.policeID }</td>
	<td>${caseMsgEntity.policeName }</td>
	<td>${caseMsgEntity.caseID }</td>
	<td>${caseMsgEntity.caseName }</td>
	<td align="center"><a href ="<%=basePath %>/police/modules.jsp?caseID=${caseMsgEntity.caseID }">继续上次</a></td>
	</tr>
	</c:forEach>	
 </table>  


</td></tr></table>
	</td>
    <td background="<%=contextPath%>/img/skin/mail_rightbg.gif">&nbsp;</td>
  </tr>
  <tr>
    <td valign="bottom" background="<%=contextPath%>/img/skin/mail_leftbg.gif"><img src="<%=contextPath%>/img/skin/buttom_left2.gif" width="17" height="17" /></td>
    <td background="<%=contextPath%>/img/skin/buttom_bgs.gif"><img src="<%=contextPath%>/img/skin/buttom_bgs.gif" width="17" height="17"></td>
    <td valign="bottom" background="<%=contextPath%>/img/skin/mail_rightbg.gif"><img src="<%=contextPath%>/img/skin/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
</table>
  </body>
  <script language="javascript"><!--
//senfe("表格名称","奇数行背景","偶数行背景","鼠标经过背景","点击后背景");
senfe("changecolor","#D2E2F9","#e5f1f4","#ecfbd4","#bce774");
--></script>
</html>
